home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Games Machine 76
/
XENIATGM66.iso
/
Indiana Jones
/
Indiana Jones.exe
/
RESOURCE
/
PREVIEW.GOB
/
cog_nub_robodoor.cog
< prev
next >
Wrap
Text File
|
1999-11-15
|
1KB
|
58 lines
# Jones 3D Cog Script
#
# nub_RoboDoor.cog
#
# [TL]
#
# (C) 1999 LucasArts Entertainment Co. All Rights Reserved
# ========================================================================================
symbols
message startup
message damaged
thing button0 mask=0x8
thing robot
surface adjoin0
thing player local
int done=0 local
end
# ========================================================================================
code
startup:
StartCutscene(1);
EndCutscene();
player = GetLocalPlayerThing();
return;
# ........................................................................................
damaged:
if ((GetSenderRef() == button0) && (GetParam(1) == 0x4000))
{
if (done == 1) return;
done = 1;
StopThing(player);
SetActorFlags(player, 0x200000);
//PlayMode(player, 60, 0);
SetAdjoinFlags(adjoin0, 2);
print("Looks like that charged the door...");
Sleep(1.0);
print("I guess I can open it now...");
ClearActorFlags(player, 0x200000);
SendMessageEX(GetThingClassCog(robot), user0, robot, 0, 0, 0);
}
return;
# ........................................................................................
end